<?php
	$v_params = $this->getParams();
	$listaGeral = $v_params[0];
?>
<div align="center">
    <table class="lista" style="width:98%;">
          <thead>
          <tr>
              <th colspan="2">Últimos clientes</th>
          </tr>
          </thead>
          <tbody>
          <?php foreach($listaGeral as $lc){ if($lc["no_cliente"]){ 
              $hrRest = ($lc["nu_total_horas_cliente"]-$lc["tt_horas"]);
              $prRest = round(100-($lc["tt_horas"]*100)/$lc["nu_total_horas_cliente"]);
          ?>
          <tr>
              	<td>
                  <?php echo $lc["no_cliente"] ?>
              	</td>
				<td>
                  <a href="clientes/listar#mostrarCliente-<?php echo $lc["id_cliente"] ?>
                  "class="btn_laranja" >Abrir</a>
              </td>
          </tr>
          <?php }else { echo '<td colspan="5">Nenhum cliente cadastrado na aplicação</td>'; } } ?>
          </tbody>
      </table>
</div>